#include "head.h"

void HideCursor() {
#ifdef __WIN32__
  CONSOLE_CURSOR_INFO cursor;
  cursor.bVisible = FALSE;
  cursor.dwSize = sizeof(cursor);
  HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
  SetConsoleCursorInfo(handle, &cursor);
#endif
}
void full_screen() {
#ifdef __WIN32__
  HWND hwnd = GetForegroundWindow();
  int cx = GetSystemMetrics(SM_CXSCREEN);
  int cy = GetSystemMetrics(SM_CYSCREEN);
  LONG l_WinStyle = GetWindowLong(hwnd, GWL_STYLE);
  SetWindowLong(hwnd, GWL_STYLE,
                (l_WinStyle | WS_POPUP | WS_MAXIMIZE) & ~WS_CAPTION &
                    ~WS_THICKFRAME & ~WS_BORDER);
  SetWindowPos(hwnd, HWND_TOP, 0, 0, cx, cy, 0);
#endif
}
